#include <stdio.h>
// ~取反  ^ 异或
int main(){
    char a=0x1;
    char b=0x2;
    char c=0x3;
    char d=~a;
    char e=~b;
    char f=~c;
    printf("d=%02x,e=%x,f=%x\n",(char)d,e,f);

    char  g=a^a;
    char  h=a^b;
    printf("g=%02x,h=%x\n",(char)g,h);
}